﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KP_CommonLibrary.KP_CommonControls;
using KP_CommonLibrary;

namespace KEEPER_BRR_13dotNET.Presentation
{
    public partial class Frm_NhapLyDoDuyet : KP_CommonLibrary.KP_CommonControls.KP_FormBase01
    {
        public Frm_NhapLyDoDuyet()
        {
            InitializeComponent();
        }
        public string LyDo
        {
            get
            {

                return (cbLyDo.SelectedItem as DevComponents.Editors.ComboItem).Text +":"+ txtLyDo.Text;
            }
        }
        private void Frm_NhapLyDoDuyet_Load(object sender, EventArgs e)
        {

        }

        private void btnAccept_Click(object sender, EventArgs e)
        {
            if (cbLyDo.SelectedItem == null || txtLyDo.Text == "")
                KPMessageBox.Show("Bạn phải chọn ít nhất một lý do", KP_SYS_VARIABLE.M_KEEPER_VER, KPMessageBoxButton.OK, KPMessageBoxIcon.Warning);
            else
                DialogResult = DialogResult.OK;
        }
    }
}
